<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播定位示例</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        ul {
            list-style: none;
        }

        .g-banner {
            width: 500px;
            height: 200px;
            background-color: pink;

            position: relative;
        }

        .g-banner img {
            width: 100%;
            height: 100%;
        }

        .g-banner ul {
            position: absolute;
            bottom: 10px;
            right: 10px;
        }

        .g-banner ul li {
            /* 设置元素为行块元素：即有行元素特点又有块元素 */
            display: inline-block;
            width: 20px;
            height: 20px;
            background-color: blueviolet;
            color: white;
            /* 文本水平居中 */
            text-align: center;
            /* 文本垂直居中 */
            line-height: 20px;
            border-radius: 50%;
            font-size: 12px;
        }
    </style>
</head>

<body>
    <div class="g-banner">
        <img src="../img/22.jpg" alt="22">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
        </ul>
    </div>

</body>

</html>